package com.rose.datax.dataxadmin.exception;

public class CommonException extends RuntimeException {
    private static final long serialVersionUID = -7480022450501760611L;

    private String code;

    private String message;

    public CommonException(ErrorCodes codes) {
        this.code = codes.code();
        this.message = codes.msg();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
